import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/good/list',
    method: 'get',
    params: data
  })
}

export function add(data) {
  return request({
    url: '/good/add',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/good/edit',
    method: 'post',
    data
  })
}

export function isStatus(data) {
  return request({
    url: '/good/isStatus',
    method: 'post',
    params: data
  })
}

export function remove(data) {
  return request({
    url: '/good/remove',
    method: 'post',
    params: data
  })
}
